package com.ruoyi.kiku.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 旅行日记对象 my_travel_diary
 *
 * @author TT
 * @date 2025-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("my_travel_diary")
public class MyTravelDiary extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 打卡地点名称 */
    @Excel(name = "打卡地点名称")
    private String locationName;

    /** 出发地 */
    @Excel(name = "出发地")
    private String departurePlace;

    /** 出行方式 */
    @Excel(name = "出行方式")
    private Integer travelMode;

    /** 目的地 */
    @Excel(name = "目的地")
    private String destination;

    /** 出发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出发时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date departureTime;

    /** 到达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrivalTime;

    /** 所耗时长(分钟) */
    @Excel(name = "所耗时长(分钟)")
    private Integer durationMinutes;

    /** 旅行感受 */
    @Excel(name = "旅行感受")
    private String travelFeel;

}
